import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/home_bill_list_entity.dart';

HomeBillListEntity $HomeBillListEntityFromJson(Map<String, dynamic> json) {
	final HomeBillListEntity homeBillListEntity = HomeBillListEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		homeBillListEntity.code = code;
	}
	final List<HomeBillListObj>? obj = jsonConvert.convertListNotNull<HomeBillListObj>(json['obj']);
	if (obj != null) {
		homeBillListEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		homeBillListEntity.msg = msg;
	}
	return homeBillListEntity;
}

Map<String, dynamic> $HomeBillListEntityToJson(HomeBillListEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] =  entity.obj.map((v) => v.toJson()).toList();
	data['msg'] = entity.msg;
	return data;
}

HomeBillListObj $HomeBillListObjFromJson(Map<String, dynamic> json) {
	final HomeBillListObj homeBillListObj = HomeBillListObj();
	final int? month = jsonConvert.convert<int>(json['month']);
	if (month != null) {
		homeBillListObj.month = month;
	}
	final double? money = jsonConvert.convert<double>(json['money']);
	if (money != null) {
		homeBillListObj.money = money;
	}
	return homeBillListObj;
}

Map<String, dynamic> $HomeBillListObjToJson(HomeBillListObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['month'] = entity.month;
	data['money'] = entity.money;
	return data;
}